Page({
  data: {
    routers: [{
        name: '社团',
        url: 'organization/organization',
        icon: '/icon/shetuan.png',
        code: '10'
      },
      {
        name: '工作室',
        url: 'workHome/workHome',
        icon: '/icon/gongzuo.png',
        code: '11'
      },
      {
        name: '水票',
        url: 'water/water',
        icon: '/icon/shuipiao.png',
        code: '12'
      },
      {
        name: '被褥',
        url: 'quilt/quilt',
        icon: '/icon/beiru.png',
        code: '13'
      }
    ],
    show:false
  },
  superVIP: function (e) {
    this.setData({
      show:true
    })
  },
  onClose:function(){
    this.setData({
      show: false
    })
  },
  okUser:function(e){
    var that = this ;
    if(that.data.user == '' || that.data.password == ''){
      wx.showModal({
        title: '提示',
        content: '请输入完整后认证',
        showCancel: false
      })
    }else{
      wx.showLoading({
        title: '查询中...',
      })
      if(that.data.user=="xbmu5201314" && that.data.password=="love"){
        wx.navigateTo({
          url: 'audit/audit',
        })
      }else{
        wx.showToast({
          icon:"none",
          title: '账号或密码错误',
        })
      }
    }
  },
  user:function(e){
    this.setData({
      user:e.detail
    })
},
password: function (e) {
  this.setData({
    password: e.detail
  })
},
  goYuYue(){
    wx.navigateTo({
      url: '/pages/index/lookSchool/lookSchool',
    })
  },
  goClass() {
    wx.navigateTo({
      url: 'class/class',
    })
  },
  // 前往二手市场
  secondHand() {
    wx.navigateTo({
      url: 'secondHand/secondHand',
    })
  }
})